{# Defined: domain, profile, mtaTransport, [msg,] #}

{% extends "layout.html" %}
{% from "macros/general.html" import
        display_add_domain,
        with context %}
{% from "macros/msgHandlers.html" import domainMsgHandler, with context %}

{% block title %}{{ _('Add domain') }}{% endblock title %}
{% block navlinks_active_create %}class="active"{% endblock %}

{% block main %}
{# Show system message #}
{{ domainMsgHandler(msg) }}

    <div class="content-box">
        <div class="box-body">
            <div class="box-header clear">
                <ul class="tabs clear">
                    <li><a href="{{ctx.homepath}}/domains">{{ _('All domains') }}</a></li>
                    {% if session.get('domainGlobalAdmin') is sameas true %}
                        <li class="active"><a href="{{ctx.homepath}}/create/domain"><img src="{{ctx.homepath}}/static/{{skin}}/images/ico_add_12.png" /> {{ _('Add domain') }}</a></li>
                    {% endif %}
                </ul>

                <h2>{{ _('Add domain') }}</h2>
            </div>

            {{ display_add_domain(label=false) }}
        </div>
    </div>

{% endblock main %}
